package dispatch;

/**
 * Class for creating an operator
 */
public class Operator {
	/**
	 * Variable registering the name of this operator
	 */
	private String name;

	/**
	 * Initialize this operator with a given name
	 * 
	 * @param name
	 *            the name of this operator
	 */
	public Operator(String name) {
		setName(name);
	}

	/**
	 * Getter for returning the name of this operator
	 * 
	 * @return the name of this operator
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name of this operator to a given name
	 * 
	 * @param name
	 *            the new name of this operator
	 */
	private void setName(String name) {
		this.name = name;
	}
}
